/* 内容中心相关 api */


import request from 'utils/request'

let config = {
    headers: {
        'Content-Type': 'application/json' 
    }
}
const contentCenterApi = {
    getSetting: (params) => request.get('/p/article/articleSetting'), // 用户端文章发布配置

    getDetail: (params) => request.get('/p/article/publishArticle/detail', params), // 获取文章详情

    getArticleList: (params) => request.get('/p/article/list', params), // 获取文章列表

    updataThumb: (params) => request.post('/p/article/thumb', params,config), //点赞/取消点赞

    getExist: (params) => request.get('/p/article/thumb/exist',params), //已点赞
    
    thumbTotal: (params) => request.get('/p/article/thumb/thumbTotal', params), //点赞数量

    addComment: (params) => request.post('/p/article/comment', params,config), //发布评论

    delComment: (params) => request.post('/p/article/comment/delete', params,config), //删除评论

    commentList: (params) => request.get('/p/article/comment/page', params) //评论列表

    

}
export { contentCenterApi }


